3.82 \(\int \frac {(a+b \log (c x^n))^2 \log (d (e+f x)^m)}{x^2} \, dx\)

Optimal. Leaf size=248 \[ -\frac {2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{x}+\frac {2 b f m n \text {Li}_2\left (-\frac {e}{f x}\right ) \left (a+b \log \left (c x^n\right )\right )}{e}-\frac {2 b f m n \log \left (\frac {e}{f x}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{e}-\frac {f m \log \left (\frac {e}{f x}+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{e}-\frac {2 b^2 n^2 \log \left (d (e+f x)^m\right )}{x}+\frac {2 b^2 f m n^2 \text {Li}_2\left (-\frac {e}{f x}\right )}{e}+\frac {2 b^2 f m n^2 \text {Li}_3\left (-\frac {e}{f x}\right )}{e}+\frac {2 b^2 f m n^2 \log (x)}{e}-\frac {2 b^2 f m n^2 \log (e+f x)}{e} \]

[Out]

2*b^2*f*m*n^2*ln(x)/e-2*b*f*m*n*ln(1+e/f/x)*(a+b*ln(c*x^n))/e-f*m*ln(1+e/f/x)*(a+b*ln(c*x^n))^2/e-2*b^2*f*m*n^
2*ln(f*x+e)/e-2*b^2*n^2*ln(d*(f*x+e)^m)/x-2*b*n*(a+b*ln(c*x^n))*ln(d*(f*x+e)^m)/x-(a+b*ln(c*x^n))^2*ln(d*(f*x+
e)^m)/x+2*b^2*f*m*n^2*polylog(2,-e/f/x)/e+2*b*f*m*n*(a+b*ln(c*x^n))*polylog(2,-e/f/x)/e+2*b^2*f*m*n^2*polylog(
3,-e/f/x)/e

________________________________________________________________________________________

Rubi [A]  time = 0.40, antiderivative size = 283, normalized size of antiderivative = 1.14, number of steps used = 15, number of rules used = 14, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.538, Rules used = {2305, 2304, 2378, 36, 29, 31, 2344, 2301, 2317, 2391, 2302, 30, 2374, 6589} \[ -\frac {2 b f m n \text {PolyLog}\left (2,-\frac {f x}{e}\right ) \left (a+b \log \left (c x^n\right )\right )}{e}-\frac {2 b^2 f m n^2 \text {PolyLog}\left (2,-\frac {f x}{e}\right )}{e}+\frac {2 b^2 f m n^2 \text {PolyLog}\left (3,-\frac {f x}{e}\right )}{e}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{x}-\frac {2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x}+\frac {f m \left (a+b \log \left (c x^n\right )\right )^3}{3 b e n}+\frac {f m \left (a+b \log \left (c x^n\right )\right )^2}{e}-\frac {f m \log \left (\frac {f x}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{e}-\frac {2 b f m n \log \left (\frac {f x}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{e}-\frac {2 b^2 n^2 \log \left (d (e+f x)^m\right )}{x}+\frac {2 b^2 f m n^2 \log (x)}{e}-\frac {2 b^2 f m n^2 \log (e+f x)}{e} \]

Antiderivative was successfully verified.

[In]

Int[((a + b*Log[c*x^n])^2*Log[d*(e + f*x)^m])/x^2,x]

[Out]

(2*b^2*f*m*n^2*Log[x])/e + (f*m*(a + b*Log[c*x^n])^2)/e + (f*m*(a + b*Log[c*x^n])^3)/(3*b*e*n) - (2*b^2*f*m*n^
2*Log[e + f*x])/e - (2*b^2*n^2*Log[d*(e + f*x)^m])/x - (2*b*n*(a + b*Log[c*x^n])*Log[d*(e + f*x)^m])/x - ((a +
 b*Log[c*x^n])^2*Log[d*(e + f*x)^m])/x - (2*b*f*m*n*(a + b*Log[c*x^n])*Log[1 + (f*x)/e])/e - (f*m*(a + b*Log[c
*x^n])^2*Log[1 + (f*x)/e])/e - (2*b^2*f*m*n^2*PolyLog[2, -((f*x)/e)])/e - (2*b*f*m*n*(a + b*Log[c*x^n])*PolyLo
g[2, -((f*x)/e)])/e + (2*b^2*f*m*n^2*PolyLog[3, -((f*x)/e)])/e

Rule 29

Int[(x_)^(-1), x_Symbol] :> Simp[Log[x], x]

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 36

Int[1/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Dist[b/(b*c - a*d), Int[1/(a + b*x), x], x] -
Dist[d/(b*c - a*d), Int[1/(c + d*x), x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0]

Rule 2301

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))/(x_), x_Symbol] :> Simp[(a + b*Log[c*x^n])^2/(2*b*n), x] /; FreeQ[{a
, b, c, n}, x]

Rule 2302

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/(x_), x_Symbol] :> Dist[1/(b*n), Subst[Int[x^p, x], x, a + b*L
og[c*x^n]], x] /; FreeQ[{a, b, c, n, p}, x]

Rule 2304

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Log[c*x^
n]))/(d*(m + 1)), x] - Simp[(b*n*(d*x)^(m + 1))/(d*(m + 1)^2), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rule 2305

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[((d*x)^(m + 1)*(a + b*Lo
g[c*x^n])^p)/(d*(m + 1)), x] - Dist[(b*n*p)/(m + 1), Int[(d*x)^m*(a + b*Log[c*x^n])^(p - 1), x], x] /; FreeQ[{
a, b, c, d, m, n}, x] && NeQ[m, -1] && GtQ[p, 0]

Rule 2317

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(Log[1 + (e*x)/d]*(a +
b*Log[c*x^n])^p)/e, x] - Dist[(b*n*p)/e, Int[(Log[1 + (e*x)/d]*(a + b*Log[c*x^n])^(p - 1))/x, x], x] /; FreeQ[
{a, b, c, d, e, n}, x] && IGtQ[p, 0]

Rule 2344

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((x_)*((d_) + (e_.)*(x_))), x_Symbol] :> Dist[1/d, Int[(a + b*
Log[c*x^n])^p/x, x], x] - Dist[e/d, Int[(a + b*Log[c*x^n])^p/(d + e*x), x], x] /; FreeQ[{a, b, c, d, e, n}, x]
 && IGtQ[p, 0]

Rule 2374

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> -Sim
p[(PolyLog[2, -(d*f*x^m)]*(a + b*Log[c*x^n])^p)/m, x] + Dist[(b*n*p)/m, Int[(PolyLog[2, -(d*f*x^m)]*(a + b*Log
[c*x^n])^(p - 1))/x, x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 2378

Int[Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))^(r_.)]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((g_.)*(x_))^(q_.),
 x_Symbol] :> With[{u = IntHide[(g*x)^q*(a + b*Log[c*x^n])^p, x]}, Dist[Log[d*(e + f*x^m)^r], u, x] - Dist[f*m
*r, Int[Dist[x^(m - 1)/(e + f*x^m), u, x], x], x]] /; FreeQ[{a, b, c, d, e, f, g, r, m, n, q}, x] && IGtQ[p, 0
] && RationalQ[m] && RationalQ[q]

Rule 2391

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> -Simp[PolyLog[2, -(c*e*x^n)]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 6589

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin {align*} \int \frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{x^2} \, dx &=-\frac {2 b^2 n^2 \log \left (d (e+f x)^m\right )}{x}-\frac {2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{x}-(f m) \int \left (-\frac {2 b^2 n^2}{x (e+f x)}-\frac {2 b n \left (a+b \log \left (c x^n\right )\right )}{x (e+f x)}-\frac {\left (a+b \log \left (c x^n\right )\right )^2}{x (e+f x)}\right ) \, dx\\ &=-\frac {2 b^2 n^2 \log \left (d (e+f x)^m\right )}{x}-\frac {2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{x}+(f m) \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{x (e+f x)} \, dx+(2 b f m n) \int \frac {a+b \log \left (c x^n\right )}{x (e+f x)} \, dx+\left (2 b^2 f m n^2\right ) \int \frac {1}{x (e+f x)} \, dx\\ &=-\frac {2 b^2 n^2 \log \left (d (e+f x)^m\right )}{x}-\frac {2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{x}+\frac {(f m) \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx}{e}-\frac {\left (f^2 m\right ) \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{e+f x} \, dx}{e}+\frac {(2 b f m n) \int \frac {a+b \log \left (c x^n\right )}{x} \, dx}{e}-\frac {\left (2 b f^2 m n\right ) \int \frac {a+b \log \left (c x^n\right )}{e+f x} \, dx}{e}+\frac {\left (2 b^2 f m n^2\right ) \int \frac {1}{x} \, dx}{e}-\frac {\left (2 b^2 f^2 m n^2\right ) \int \frac {1}{e+f x} \, dx}{e}\\ &=\frac {2 b^2 f m n^2 \log (x)}{e}+\frac {f m \left (a+b \log \left (c x^n\right )\right )^2}{e}-\frac {2 b^2 f m n^2 \log (e+f x)}{e}-\frac {2 b^2 n^2 \log \left (d (e+f x)^m\right )}{x}-\frac {2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{x}-\frac {2 b f m n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {f x}{e}\right )}{e}-\frac {f m \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {f x}{e}\right )}{e}+\frac {(f m) \operatorname {Subst}\left (\int x^2 \, dx,x,a+b \log \left (c x^n\right )\right )}{b e n}+\frac {(2 b f m n) \int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {f x}{e}\right )}{x} \, dx}{e}+\frac {\left (2 b^2 f m n^2\right ) \int \frac {\log \left (1+\frac {f x}{e}\right )}{x} \, dx}{e}\\ &=\frac {2 b^2 f m n^2 \log (x)}{e}+\frac {f m \left (a+b \log \left (c x^n\right )\right )^2}{e}+\frac {f m \left (a+b \log \left (c x^n\right )\right )^3}{3 b e n}-\frac {2 b^2 f m n^2 \log (e+f x)}{e}-\frac {2 b^2 n^2 \log \left (d (e+f x)^m\right )}{x}-\frac {2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{x}-\frac {2 b f m n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {f x}{e}\right )}{e}-\frac {f m \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {f x}{e}\right )}{e}-\frac {2 b^2 f m n^2 \text {Li}_2\left (-\frac {f x}{e}\right )}{e}-\frac {2 b f m n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {f x}{e}\right )}{e}+\frac {\left (2 b^2 f m n^2\right ) \int \frac {\text {Li}_2\left (-\frac {f x}{e}\right )}{x} \, dx}{e}\\ &=\frac {2 b^2 f m n^2 \log (x)}{e}+\frac {f m \left (a+b \log \left (c x^n\right )\right )^2}{e}+\frac {f m \left (a+b \log \left (c x^n\right )\right )^3}{3 b e n}-\frac {2 b^2 f m n^2 \log (e+f x)}{e}-\frac {2 b^2 n^2 \log \left (d (e+f x)^m\right )}{x}-\frac {2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d (e+f x)^m\right )}{x}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d (e+f x)^m\right )}{x}-\frac {2 b f m n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {f x}{e}\right )}{e}-\frac {f m \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {f x}{e}\right )}{e}-\frac {2 b^2 f m n^2 \text {Li}_2\left (-\frac {f x}{e}\right )}{e}-\frac {2 b f m n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {f x}{e}\right )}{e}+\frac {2 b^2 f m n^2 \text {Li}_3\left (-\frac {f x}{e}\right )}{e}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.35, size = 600, normalized size = 2.42 \[ -\frac {3 a^2 e \log \left (d (e+f x)^m\right )+3 a^2 f m x \log (e+f x)-3 a^2 f m x \log (x)+6 a b e \log \left (c x^n\right ) \log \left (d (e+f x)^m\right )+6 b f m n x \text {Li}_2\left (-\frac {f x}{e}\right ) \left (a+b \log \left (c x^n\right )+b n\right )+6 a b f m x \log \left (c x^n\right ) \log (e+f x)-6 a b f m x \log (x) \log \left (c x^n\right )+6 a b e n \log \left (d (e+f x)^m\right )-6 a b f m n x \log (x) \log (e+f x)+6 a b f m n x \log (x) \log \left (\frac {f x}{e}+1\right )+6 a b f m n x \log (e+f x)+3 a b f m n x \log ^2(x)-6 a b f m n x \log (x)+3 b^2 e \log ^2\left (c x^n\right ) \log \left (d (e+f x)^m\right )+6 b^2 e n \log \left (c x^n\right ) \log \left (d (e+f x)^m\right )+3 b^2 f m x \log ^2\left (c x^n\right ) \log (e+f x)-6 b^2 f m n x \log (x) \log \left (c x^n\right ) \log (e+f x)+6 b^2 f m n x \log (x) \log \left (c x^n\right ) \log \left (\frac {f x}{e}+1\right )+6 b^2 f m n x \log \left (c x^n\right ) \log (e+f x)+3 b^2 f m n x \log ^2(x) \log \left (c x^n\right )-3 b^2 f m x \log (x) \log ^2\left (c x^n\right )-6 b^2 f m n x \log (x) \log \left (c x^n\right )+6 b^2 e n^2 \log \left (d (e+f x)^m\right )-6 b^2 f m n^2 x \text {Li}_3\left (-\frac {f x}{e}\right )+3 b^2 f m n^2 x \log ^2(x) \log (e+f x)-3 b^2 f m n^2 x \log ^2(x) \log \left (\frac {f x}{e}+1\right )-6 b^2 f m n^2 x \log (x) \log (e+f x)+6 b^2 f m n^2 x \log (x) \log \left (\frac {f x}{e}+1\right )+6 b^2 f m n^2 x \log (e+f x)-b^2 f m n^2 x \log ^3(x)+3 b^2 f m n^2 x \log ^2(x)-6 b^2 f m n^2 x \log (x)}{3 e x} \]

Antiderivative was successfully verified.

[In]

Integrate[((a + b*Log[c*x^n])^2*Log[d*(e + f*x)^m])/x^2,x]

[Out]

-1/3*(-3*a^2*f*m*x*Log[x] - 6*a*b*f*m*n*x*Log[x] - 6*b^2*f*m*n^2*x*Log[x] + 3*a*b*f*m*n*x*Log[x]^2 + 3*b^2*f*m
*n^2*x*Log[x]^2 - b^2*f*m*n^2*x*Log[x]^3 - 6*a*b*f*m*x*Log[x]*Log[c*x^n] - 6*b^2*f*m*n*x*Log[x]*Log[c*x^n] + 3
*b^2*f*m*n*x*Log[x]^2*Log[c*x^n] - 3*b^2*f*m*x*Log[x]*Log[c*x^n]^2 + 3*a^2*f*m*x*Log[e + f*x] + 6*a*b*f*m*n*x*
Log[e + f*x] + 6*b^2*f*m*n^2*x*Log[e + f*x] - 6*a*b*f*m*n*x*Log[x]*Log[e + f*x] - 6*b^2*f*m*n^2*x*Log[x]*Log[e
 + f*x] + 3*b^2*f*m*n^2*x*Log[x]^2*Log[e + f*x] + 6*a*b*f*m*x*Log[c*x^n]*Log[e + f*x] + 6*b^2*f*m*n*x*Log[c*x^
n]*Log[e + f*x] - 6*b^2*f*m*n*x*Log[x]*Log[c*x^n]*Log[e + f*x] + 3*b^2*f*m*x*Log[c*x^n]^2*Log[e + f*x] + 3*a^2
*e*Log[d*(e + f*x)^m] + 6*a*b*e*n*Log[d*(e + f*x)^m] + 6*b^2*e*n^2*Log[d*(e + f*x)^m] + 6*a*b*e*Log[c*x^n]*Log
[d*(e + f*x)^m] + 6*b^2*e*n*Log[c*x^n]*Log[d*(e + f*x)^m] + 3*b^2*e*Log[c*x^n]^2*Log[d*(e + f*x)^m] + 6*a*b*f*
m*n*x*Log[x]*Log[1 + (f*x)/e] + 6*b^2*f*m*n^2*x*Log[x]*Log[1 + (f*x)/e] - 3*b^2*f*m*n^2*x*Log[x]^2*Log[1 + (f*
x)/e] + 6*b^2*f*m*n*x*Log[x]*Log[c*x^n]*Log[1 + (f*x)/e] + 6*b*f*m*n*x*(a + b*n + b*Log[c*x^n])*PolyLog[2, -((
f*x)/e)] - 6*b^2*f*m*n^2*x*PolyLog[3, -((f*x)/e)])/(e*x)

________________________________________________________________________________________

fricas [F]  time = 0.62, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {{\left (b^{2} \log \left (c x^{n}\right )^{2} + 2 \, a b \log \left (c x^{n}\right ) + a^{2}\right )} \log \left ({\left (f x + e\right )}^{m} d\right )}{x^{2}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*x^n))^2*log(d*(f*x+e)^m)/x^2,x, algorithm="fricas")

[Out]

integral((b^2*log(c*x^n)^2 + 2*a*b*log(c*x^n) + a^2)*log((f*x + e)^m*d)/x^2, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b \log \left (c x^{n}\right ) + a\right )}^{2} \log \left ({\left (f x + e\right )}^{m} d\right )}{x^{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*x^n))^2*log(d*(f*x+e)^m)/x^2,x, algorithm="giac")

[Out]

integrate((b*log(c*x^n) + a)^2*log((f*x + e)^m*d)/x^2, x)

________________________________________________________________________________________

maple [C]  time = 1.27, size = 10991, normalized size = 44.32 \[ \text {output too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*ln(c*x^n)+a)^2*ln(d*(f*x+e)^m)/x^2,x)

[Out]

result too large to display

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ -\frac {{\left (b^{2} f m x \log \left (f x + e\right ) - b^{2} f m x \log \relax (x) + b^{2} e \log \relax (d)\right )} \log \left (x^{n}\right )^{2} + {\left (b^{2} e \log \left (x^{n}\right )^{2} + 2 \, {\left (e n + e \log \relax (c)\right )} a b + {\left (2 \, e n^{2} + 2 \, e n \log \relax (c) + e \log \relax (c)^{2}\right )} b^{2} + a^{2} e + 2 \, {\left ({\left (e n + e \log \relax (c)\right )} b^{2} + a b e\right )} \log \left (x^{n}\right )\right )} \log \left ({\left (f x + e\right )}^{m}\right )}{e x} + \int \frac {b^{2} e^{2} \log \relax (c)^{2} \log \relax (d) + 2 \, a b e^{2} \log \relax (c) \log \relax (d) + a^{2} e^{2} \log \relax (d) + {\left ({\left (e f m + e f \log \relax (d)\right )} a^{2} + 2 \, {\left (e f m n + {\left (e f m + e f \log \relax (d)\right )} \log \relax (c)\right )} a b + {\left (2 \, e f m n^{2} + 2 \, e f m n \log \relax (c) + {\left (e f m + e f \log \relax (d)\right )} \log \relax (c)^{2}\right )} b^{2}\right )} x + 2 \, {\left (a b e^{2} \log \relax (d) + {\left (e^{2} n \log \relax (d) + e^{2} \log \relax (c) \log \relax (d)\right )} b^{2} + {\left ({\left (e f m + e f \log \relax (d)\right )} a b + {\left (e f m n + e f n \log \relax (d) + {\left (e f m + e f \log \relax (d)\right )} \log \relax (c)\right )} b^{2}\right )} x + {\left (b^{2} f^{2} m n x^{2} + b^{2} e f m n x\right )} \log \left (f x + e\right ) - {\left (b^{2} f^{2} m n x^{2} + b^{2} e f m n x\right )} \log \relax (x)\right )} \log \left (x^{n}\right )}{e f x^{3} + e^{2} x^{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*x^n))^2*log(d*(f*x+e)^m)/x^2,x, algorithm="maxima")

[Out]

-((b^2*f*m*x*log(f*x + e) - b^2*f*m*x*log(x) + b^2*e*log(d))*log(x^n)^2 + (b^2*e*log(x^n)^2 + 2*(e*n + e*log(c
))*a*b + (2*e*n^2 + 2*e*n*log(c) + e*log(c)^2)*b^2 + a^2*e + 2*((e*n + e*log(c))*b^2 + a*b*e)*log(x^n))*log((f
*x + e)^m))/(e*x) + integrate((b^2*e^2*log(c)^2*log(d) + 2*a*b*e^2*log(c)*log(d) + a^2*e^2*log(d) + ((e*f*m +
e*f*log(d))*a^2 + 2*(e*f*m*n + (e*f*m + e*f*log(d))*log(c))*a*b + (2*e*f*m*n^2 + 2*e*f*m*n*log(c) + (e*f*m + e
*f*log(d))*log(c)^2)*b^2)*x + 2*(a*b*e^2*log(d) + (e^2*n*log(d) + e^2*log(c)*log(d))*b^2 + ((e*f*m + e*f*log(d
))*a*b + (e*f*m*n + e*f*n*log(d) + (e*f*m + e*f*log(d))*log(c))*b^2)*x + (b^2*f^2*m*n*x^2 + b^2*e*f*m*n*x)*log
(f*x + e) - (b^2*f^2*m*n*x^2 + b^2*e*f*m*n*x)*log(x))*log(x^n))/(e*f*x^3 + e^2*x^2), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {\ln \left (d\,{\left (e+f\,x\right )}^m\right )\,{\left (a+b\,\ln \left (c\,x^n\right )\right )}^2}{x^2} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((log(d*(e + f*x)^m)*(a + b*log(c*x^n))^2)/x^2,x)

[Out]

int((log(d*(e + f*x)^m)*(a + b*log(c*x^n))^2)/x^2, x)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*ln(c*x**n))**2*ln(d*(f*x+e)**m)/x**2,x)

[Out]

Timed out

________________________________________________________________________________________